from entity import Entity
from apihandler import json_encode

class Directory(Entity):
    _default_data = {
        'id'   : 0,
        'type' : 'directory',
        'name' : '',
    }

    def serialize(self):
        data = self._data.copy()
        #for file in data.files:
        #    file = file.serialize()
        return data

    def __str__(self):
        return self._data['name']

    def __unicode__(self):
        return self._data['name']
